publish v1.YYMMDD.N go-modules mirror tags#120
Open
Jolymmiles wants to merge 1 commit intoXTLS:mainfrom
Open
Conversation
CalVer tags vYY.M.D have major >= 2, which per the Go modules spec forces consumers onto pseudo-versions (commit-pinned `go get`) unless the import path carries a /vN suffix. Bumping the suffix every January would break every downstream import once a year. Mirror each CalVer release onto a SemVer-shaped tag on the same commit (v26.3.27 → v1.260327.0). Major stays at 1, no import-path churn, and `go get github.com/xtls/libxray@v1.260327.0` resolves cleanly. Same scheme xray-core uses. - .github/workflows/release-go-mirror.yml: auto-create v1.* tag on every CalVer push, with recursion guard and CalVer-range validation - scripts/backfill-semver-tags.sh: one-shot history backfill, idempotent; pass --push to publish - README.md: document the convention for Go consumers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CalVer tags vYY.M.D have major >= 2, which per the Go modules spec forces consumers onto pseudo-versions (commit-pinned
go get) unless the import path carries a /vN suffix. Bumping the suffix every January would break every downstream import once a year.Mirror each CalVer release onto a SemVer-shaped tag on the same commit (v26.3.27 → v1.260327.0). Major stays at 1, no import-path churn, and
go get github.com/xtls/libxray@v1.260327.0resolves cleanly. Same scheme xray-core uses.